﻿#ifndef XPUSHBUTTONFUNCTION_P_H
#define XPUSHBUTTONFUNCTION_P_H

#include "xpushbuttonfunction.h"

QT_BEGIN_NAMESPACE

class XPushButtonFunctionPrivate
{
public:
    XPushButtonFunctionPrivate();
    ~XPushButtonFunctionPrivate();

    /* Display Property */
    bool displayEnable;                 // Declare a DisplayEnable variable

    /* Display Parameters */
    QString defaultStyleSheet;

    /* Status Parameters */
    bool pushButtonBoolStatus;          // Declare an pushButtonBoolStatus variable

    /* Signal Parameters */
    bool pressResult;

    /* XMap Parameters */
    XMap pressInstanceMap;
    XMap pressStatusMap;
    XMap releaseInstanceMap;
    XMap releaseStatusMap;

    /* Display Parameters */
    QString defaultText;                // Declare a DefaultText variable
    QString textBuffer;                 // Declare a TextBuffer variable

    /* Mouse Parameters */
    bool LeftmousePressed;              // The flag of leftmouse be pressed
    QPointF mousePressPoint;            // The current coordinates of mouse click

    void xMapClear(XMap &map);          // The function to clear XMap
};

QT_END_NAMESPACE

#endif // XPUSHBUTTONFUNCTION_P_H
